<div class="content-main-padd">
<div class="content-l">
<?if(count($this->ret) > 0):?>
<div class="seplinetop">共有<strong class="red"><?=$this->allUserNums?></strong>位好友</div>
<div class="column">
<div class="column-wrap">
<div class="column-m">
<?foreach($this->ret as $i => $row):?>	
<!--friend list-->
<div class="friend190">
<div class="avatar50"><a href="/?uid=<?=$row['uid']?>"><img src="<?=member_util_avatar::get_avatar($row['uid'], 'small')?>" width="50px" height="50px" /></a></div>
<div class="leftfix">
     <div class="leftfix-r">
	     <p><a href="javascript:void(0)" onclick="javascript:Friends.addFriendToGroupFrom('<?= $row['uid']?>')" >修改分组</a></p>
		 <p><a href="javascript:void(0)" onclick="Friends.delFriendFrom('<?= $row['uid']?>', '<?if($this->group) {echo $this->group;} else {echo '0';}?>')">删除好友</a></p>
		 <?if ($this->group):?><p><a href="javascript:void(0)" onclick="Friends.delFriendGroupFrom('<?=$this->group?>','<?= $row['uid']?>', '<?=$row['username']?>')">从分组中移除</a></p><?endif;?>
	</div><!--leftfix-r-->
	<div class="leftfix-l">
		<?if(Util::isOnline($row['uid'])):?><i:online xmlns:i="178"/><?endif;?>
		<i:name xmlns:i="178" uid="<?=$row['uid']?>" username="<?=$row['username']?>"  length="10" />
		<p>备注：
			<? if($row['remark']):?>
				<span class="friend_remark" id="remark_<?=$row['uid']?>">
					<?=htmlspecialchars(mb_strimwidth($row['remark'] , 0 , 10, '...', 'utf-8'))?>
					<a href="javascript:void(0)" class="modity-classify" title="点击修改备注" onclick="javascript:Friends.remarkFrom('<?=$row['uid']?>')"></a>
				</span>
				<span id="remark_input_<?=$row['uid']?>" style="display:none;">
					<input type="text" value="<?=htmlspecialchars($row['remark'])?>" id="remark_text_<?=$row['uid']?>" name="<?=$row['uid']?>" onkeydown="if(event.keyCode==13){Friends.editRemark(this, 0);}" onBlur="javascript:Friends.editRemark(this, 0)" size="10" style="height:12px; background:#FFFFFF;border:1px solid #666;color:#333333;font-size:12px;padding:3px;width:74px">
				</span>
			<? else :?>
				<span class="friend_remark" id="remark_<?=$row['uid']?>">
					<?=htmlspecialchars(mb_strimwidth($row['username'] , 0 , 10, '...', 'utf-8'))?>
					<a href="javascript:void(0)" class="modity-classify" title="点击修改备注" onclick="javascript:Friends.remarkFrom('<?=$row['uid']?>')"></a>
				</span>
				<span id="remark_input_<?=$row['uid']?>" style="display:none;">
					<input type="text" value="<?=htmlspecialchars($row['username'])?>" id="remark_text_<?=$row['uid']?>" name="<?=$row['uid']?>" onkeydown="if(event.keyCode==13){Friends.editRemark(this, 0);}" onBlur="javascript:Friends.editRemark(this, 0)" size="10" style="height:12px; background:#FFFFFF;border:1px solid #666;color:#333333;font-size:12px;padding:3px;width:74px">
				</span>
			<? endif;?>
		</p>
	</div>
</div>
<div class="clearfix"></div>
</div>
<!--end friend list-->
<?endforeach; ?>
<div class="clearfix"></div>
</div><!--column-m-->
</div><!--column-wrap-->
<div class="sepline13"><?php echo $this->genPages($this->pageInfo, ('' !== $this->group) ? array('group'=>$this->group): array());?></div>
</div>
<? else:?>
	<?if ($this->group):?>
		<i:info type="friendly" xmlns:i="178">你没有此分组的好友</i:info>
	<?else:?>
		<i:info type="friendly" xmlns:i="178">你还没有添加过好友</i:info>
	<?endif;?>
<?endif;?>
</div> <!--end content-l -->
    <?php require_once 'part_list_right.phtml';?>
</div> <!-- content-main-padd -->


<div id="group_from" style="display:none;">
	<div style="text-align:center;">分组名称: <input type="text" id="group_name" name="group_name"></div>
</div>